﻿using System;
using System.Windows.Forms;
using Autodesk.Revit.UI;
using YJKRevitKernel.FormUtility.ModelessFormControlSuite.ControlLayer;

namespace SampleAndTest.ModelessFormControlSuite
{
	internal class LoopManger : BaseLoopMangerSwitch
	{
		public LoopManger(UIDocument inputUiDoc, IWin32Window inputParentHandle) : base(inputUiDoc, new SampleForm(inputUiDoc, inputParentHandle), new StackFactory(inputUiDoc), inputParentHandle, false)
		{
		}

		protected override void DoBeforeContinue()
		{
			MessageBox.Show("模式即将切换");
			base.DoBeforeContinue();
		}

		protected override void DoAfterWhile()
		{
			MessageBox.Show("循环中断");
			base.DoAfterWhile();
		}

		protected override void DoBeforeClose()
		{
			MessageBox.Show("循环即将中断");
			base.DoBeforeClose();
		}
	}
}
